package com.guigu.tms.manager.feign.wj;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.entity.base.PdTruck;
import com.guigu.tms.commons.entity.base.VehicleManagement;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


@FeignClient(value = "tms-base",path = "/base/pdTruck",contextId = "LizzApi2")
public interface TruckFeignClient {
    @PostMapping("/findTruckList")
    PageInfo<VehicleManagement> findTruckList(@RequestBody Map<String, String> map);

    @GetMapping("/findAllPdTruck")
    List<PdTruck> findAllPdTruck();

    @PostMapping("/AddPdTruck")
    int AddPdTruck(@RequestBody PdTruck pdTruck);

    @DeleteMapping("/DeleteTruckByid")
    int DeleteTruckByid(@RequestParam Integer truckId);

    @PutMapping("/SaveTruck")
    int SaveTruck(@RequestBody VehicleManagement vehicleManagement);

}
